package com.quark.web.ui.base;

public class QuarkUiTextareaElement extends QuarkUiElementBase{
	
	public QuarkUiTextareaElement(String id, String name, Integer col, Integer row, String cssClass, String style)
	{
		super("TEXTAREA", id, name, cssClass, style, false);
		elementId = id;
		elementName = name;
		//addAttribute("cols", col.toString());
		addAttribute("rows", row.toString());
		super.elementStyle = style + ";width:100%";
		addAttribute("onclick", "Environment.triggerEvent(this, 'click');");
		addAttribute("onchange", "Environment.triggerEvent(this, 'change');");
		super.triggerFuncs.add("Environment.triggerEvent(callObj, 'load');");
	}
	
	public void setInnerText(String text)
	{
		elementInnerHtml = text;
	}
}
